<?php

namespace MoChat\App\Call\Contract;

interface CallPlanContract
{
    public function createAllContract($where): array;

    /**
     * 删除任务
     * @param $id
     * @return int
     */
    public function deleteContract($id): int;

    /**
     * @param $data
     */
    public function createContract($data);

    /**
     * @param $where
     * @param array $filed
     */
    public function getIndexContract($where, array $filed = ['*']);

    /**
     * 修改
     * @param $id
     * @param $data
     * @return int
     */
    public function updateContract($id, $data): int;
}